import { createEnumFactory } from '@/utils/fridayClub/enumUtil'
import { getLabelByVal } from '@/utils/commons'
import {GetAllWorkStation} from '@/api/storageConfig'

/**
 *  @config2MappingValue 配置关联关系值
 *  @config2MappingName  配置关联关系翻译
 *  @status element ui 使用
 */
export const productTypes = [
  { value: 0, label: '组件', config2MappingValue: 0, config2MappingName: '组件',
    status: 'info' ,color:'#55acee',icon:''},
  { value: 1, label: '产品', config2MappingValue: 0, config2MappingName: '组件',
    status: 'primary' ,color:'#3b5999',icon:''},
  { value: 2, label: '套系', config2MappingValue: 1, config2MappingName: '产品',
    status: 'success' ,color:'#87d068',icon:''}
]

const SPLIT_DIRECTION_STATUS = [
  { value: 0, label: '横方向' },
  { value: 1, label: '竖方向' }

]

const EXPEND_TYPE_STATUS = [
  { value: 0, label: '无图' },
  { value: 1, label: '图像' },
  { value: 2, label: '纯色' }
]

export const spiltDirectionStatus = getLabelByVal(SPLIT_DIRECTION_STATUS)
export const getExpendType = getLabelByVal(EXPEND_TYPE_STATUS)
export const getProductTypes = getLabelByVal(productTypes)
// export const getExpendColor = getLabelByVal(EXPEND_COLOR_STATUS)
const productTypesEnum = createEnumFactory(productTypes)
export { productTypesEnum }
